<?php
header("Content-type:text/html;charset=utf-8");
$post_data = array();
$post_data['userid'] = '6474';
$post_data['password'] = 'qwer1234';
$post_data['account'] ='a10498';
$post_data['content'] = $_POST['num']. "仅本次有效，请勿转发或告知他人。";
$post_data['mobile'] = $_POST['tel'];
$post_data['sendtime'] = '';
$url='http://xtx.telhk.cn:8080/sms.aspx?action=send';
$o='';
foreach ($post_data as $k=>$v) {
    $o.="$k=".urlencode($v).'&';
}
$post_data=substr($o,0,-1);
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
$result = curl_exec($ch);
?>